package com.sdry.entity;

import java.util.ArrayList;
import java.util.List;

public class PartReturnDetailExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PartReturnDetailExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPartredetaidIsNull() {
            addCriterion("partredetaid is null");
            return (Criteria) this;
        }

        public Criteria andPartredetaidIsNotNull() {
            addCriterion("partredetaid is not null");
            return (Criteria) this;
        }

        public Criteria andPartredetaidEqualTo(Long value) {
            addCriterion("partredetaid =", value, "partredetaid");
            return (Criteria) this;
        }

        public Criteria andPartredetaidNotEqualTo(Long value) {
            addCriterion("partredetaid <>", value, "partredetaid");
            return (Criteria) this;
        }

        public Criteria andPartredetaidGreaterThan(Long value) {
            addCriterion("partredetaid >", value, "partredetaid");
            return (Criteria) this;
        }

        public Criteria andPartredetaidGreaterThanOrEqualTo(Long value) {
            addCriterion("partredetaid >=", value, "partredetaid");
            return (Criteria) this;
        }

        public Criteria andPartredetaidLessThan(Long value) {
            addCriterion("partredetaid <", value, "partredetaid");
            return (Criteria) this;
        }

        public Criteria andPartredetaidLessThanOrEqualTo(Long value) {
            addCriterion("partredetaid <=", value, "partredetaid");
            return (Criteria) this;
        }

        public Criteria andPartredetaidIn(List<Long> values) {
            addCriterion("partredetaid in", values, "partredetaid");
            return (Criteria) this;
        }

        public Criteria andPartredetaidNotIn(List<Long> values) {
            addCriterion("partredetaid not in", values, "partredetaid");
            return (Criteria) this;
        }

        public Criteria andPartredetaidBetween(Long value1, Long value2) {
            addCriterion("partredetaid between", value1, value2, "partredetaid");
            return (Criteria) this;
        }

        public Criteria andPartredetaidNotBetween(Long value1, Long value2) {
            addCriterion("partredetaid not between", value1, value2, "partredetaid");
            return (Criteria) this;
        }

        public Criteria andInfoidIsNull() {
            addCriterion("infoid is null");
            return (Criteria) this;
        }

        public Criteria andInfoidIsNotNull() {
            addCriterion("infoid is not null");
            return (Criteria) this;
        }

        public Criteria andInfoidEqualTo(Long value) {
            addCriterion("infoid =", value, "infoid");
            return (Criteria) this;
        }

        public Criteria andInfoidNotEqualTo(Long value) {
            addCriterion("infoid <>", value, "infoid");
            return (Criteria) this;
        }

        public Criteria andInfoidGreaterThan(Long value) {
            addCriterion("infoid >", value, "infoid");
            return (Criteria) this;
        }

        public Criteria andInfoidGreaterThanOrEqualTo(Long value) {
            addCriterion("infoid >=", value, "infoid");
            return (Criteria) this;
        }

        public Criteria andInfoidLessThan(Long value) {
            addCriterion("infoid <", value, "infoid");
            return (Criteria) this;
        }

        public Criteria andInfoidLessThanOrEqualTo(Long value) {
            addCriterion("infoid <=", value, "infoid");
            return (Criteria) this;
        }

        public Criteria andInfoidIn(List<Long> values) {
            addCriterion("infoid in", values, "infoid");
            return (Criteria) this;
        }

        public Criteria andInfoidNotIn(List<Long> values) {
            addCriterion("infoid not in", values, "infoid");
            return (Criteria) this;
        }

        public Criteria andInfoidBetween(Long value1, Long value2) {
            addCriterion("infoid between", value1, value2, "infoid");
            return (Criteria) this;
        }

        public Criteria andInfoidNotBetween(Long value1, Long value2) {
            addCriterion("infoid not between", value1, value2, "infoid");
            return (Criteria) this;
        }

        public Criteria andReturnidIsNull() {
            addCriterion("returnid is null");
            return (Criteria) this;
        }

        public Criteria andReturnidIsNotNull() {
            addCriterion("returnid is not null");
            return (Criteria) this;
        }

        public Criteria andReturnidEqualTo(Long value) {
            addCriterion("returnid =", value, "returnid");
            return (Criteria) this;
        }

        public Criteria andReturnidNotEqualTo(Long value) {
            addCriterion("returnid <>", value, "returnid");
            return (Criteria) this;
        }

        public Criteria andReturnidGreaterThan(Long value) {
            addCriterion("returnid >", value, "returnid");
            return (Criteria) this;
        }

        public Criteria andReturnidGreaterThanOrEqualTo(Long value) {
            addCriterion("returnid >=", value, "returnid");
            return (Criteria) this;
        }

        public Criteria andReturnidLessThan(Long value) {
            addCriterion("returnid <", value, "returnid");
            return (Criteria) this;
        }

        public Criteria andReturnidLessThanOrEqualTo(Long value) {
            addCriterion("returnid <=", value, "returnid");
            return (Criteria) this;
        }

        public Criteria andReturnidIn(List<Long> values) {
            addCriterion("returnid in", values, "returnid");
            return (Criteria) this;
        }

        public Criteria andReturnidNotIn(List<Long> values) {
            addCriterion("returnid not in", values, "returnid");
            return (Criteria) this;
        }

        public Criteria andReturnidBetween(Long value1, Long value2) {
            addCriterion("returnid between", value1, value2, "returnid");
            return (Criteria) this;
        }

        public Criteria andReturnidNotBetween(Long value1, Long value2) {
            addCriterion("returnid not between", value1, value2, "returnid");
            return (Criteria) this;
        }

        public Criteria andCodeIsNull() {
            addCriterion("code is null");
            return (Criteria) this;
        }

        public Criteria andCodeIsNotNull() {
            addCriterion("code is not null");
            return (Criteria) this;
        }

        public Criteria andCodeEqualTo(String value) {
            addCriterion("code =", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeNotEqualTo(String value) {
            addCriterion("code <>", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeGreaterThan(String value) {
            addCriterion("code >", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeGreaterThanOrEqualTo(String value) {
            addCriterion("code >=", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeLessThan(String value) {
            addCriterion("code <", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeLessThanOrEqualTo(String value) {
            addCriterion("code <=", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeLike(String value) {
            addCriterion("code like", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeNotLike(String value) {
            addCriterion("code not like", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeIn(List<String> values) {
            addCriterion("code in", values, "code");
            return (Criteria) this;
        }

        public Criteria andCodeNotIn(List<String> values) {
            addCriterion("code not in", values, "code");
            return (Criteria) this;
        }

        public Criteria andCodeBetween(String value1, String value2) {
            addCriterion("code between", value1, value2, "code");
            return (Criteria) this;
        }

        public Criteria andCodeNotBetween(String value1, String value2) {
            addCriterion("code not between", value1, value2, "code");
            return (Criteria) this;
        }

        public Criteria andRemrk1IsNull() {
            addCriterion("remrk1 is null");
            return (Criteria) this;
        }

        public Criteria andRemrk1IsNotNull() {
            addCriterion("remrk1 is not null");
            return (Criteria) this;
        }

        public Criteria andRemrk1EqualTo(String value) {
            addCriterion("remrk1 =", value, "remrk1");
            return (Criteria) this;
        }

        public Criteria andRemrk1NotEqualTo(String value) {
            addCriterion("remrk1 <>", value, "remrk1");
            return (Criteria) this;
        }

        public Criteria andRemrk1GreaterThan(String value) {
            addCriterion("remrk1 >", value, "remrk1");
            return (Criteria) this;
        }

        public Criteria andRemrk1GreaterThanOrEqualTo(String value) {
            addCriterion("remrk1 >=", value, "remrk1");
            return (Criteria) this;
        }

        public Criteria andRemrk1LessThan(String value) {
            addCriterion("remrk1 <", value, "remrk1");
            return (Criteria) this;
        }

        public Criteria andRemrk1LessThanOrEqualTo(String value) {
            addCriterion("remrk1 <=", value, "remrk1");
            return (Criteria) this;
        }

        public Criteria andRemrk1Like(String value) {
            addCriterion("remrk1 like", value, "remrk1");
            return (Criteria) this;
        }

        public Criteria andRemrk1NotLike(String value) {
            addCriterion("remrk1 not like", value, "remrk1");
            return (Criteria) this;
        }

        public Criteria andRemrk1In(List<String> values) {
            addCriterion("remrk1 in", values, "remrk1");
            return (Criteria) this;
        }

        public Criteria andRemrk1NotIn(List<String> values) {
            addCriterion("remrk1 not in", values, "remrk1");
            return (Criteria) this;
        }

        public Criteria andRemrk1Between(String value1, String value2) {
            addCriterion("remrk1 between", value1, value2, "remrk1");
            return (Criteria) this;
        }

        public Criteria andRemrk1NotBetween(String value1, String value2) {
            addCriterion("remrk1 not between", value1, value2, "remrk1");
            return (Criteria) this;
        }

        public Criteria andRemrk2IsNull() {
            addCriterion("remrk2 is null");
            return (Criteria) this;
        }

        public Criteria andRemrk2IsNotNull() {
            addCriterion("remrk2 is not null");
            return (Criteria) this;
        }

        public Criteria andRemrk2EqualTo(String value) {
            addCriterion("remrk2 =", value, "remrk2");
            return (Criteria) this;
        }

        public Criteria andRemrk2NotEqualTo(String value) {
            addCriterion("remrk2 <>", value, "remrk2");
            return (Criteria) this;
        }

        public Criteria andRemrk2GreaterThan(String value) {
            addCriterion("remrk2 >", value, "remrk2");
            return (Criteria) this;
        }

        public Criteria andRemrk2GreaterThanOrEqualTo(String value) {
            addCriterion("remrk2 >=", value, "remrk2");
            return (Criteria) this;
        }

        public Criteria andRemrk2LessThan(String value) {
            addCriterion("remrk2 <", value, "remrk2");
            return (Criteria) this;
        }

        public Criteria andRemrk2LessThanOrEqualTo(String value) {
            addCriterion("remrk2 <=", value, "remrk2");
            return (Criteria) this;
        }

        public Criteria andRemrk2Like(String value) {
            addCriterion("remrk2 like", value, "remrk2");
            return (Criteria) this;
        }

        public Criteria andRemrk2NotLike(String value) {
            addCriterion("remrk2 not like", value, "remrk2");
            return (Criteria) this;
        }

        public Criteria andRemrk2In(List<String> values) {
            addCriterion("remrk2 in", values, "remrk2");
            return (Criteria) this;
        }

        public Criteria andRemrk2NotIn(List<String> values) {
            addCriterion("remrk2 not in", values, "remrk2");
            return (Criteria) this;
        }

        public Criteria andRemrk2Between(String value1, String value2) {
            addCriterion("remrk2 between", value1, value2, "remrk2");
            return (Criteria) this;
        }

        public Criteria andRemrk2NotBetween(String value1, String value2) {
            addCriterion("remrk2 not between", value1, value2, "remrk2");
            return (Criteria) this;
        }

        public Criteria andRemrk3IsNull() {
            addCriterion("remrk3 is null");
            return (Criteria) this;
        }

        public Criteria andRemrk3IsNotNull() {
            addCriterion("remrk3 is not null");
            return (Criteria) this;
        }

        public Criteria andRemrk3EqualTo(String value) {
            addCriterion("remrk3 =", value, "remrk3");
            return (Criteria) this;
        }

        public Criteria andRemrk3NotEqualTo(String value) {
            addCriterion("remrk3 <>", value, "remrk3");
            return (Criteria) this;
        }

        public Criteria andRemrk3GreaterThan(String value) {
            addCriterion("remrk3 >", value, "remrk3");
            return (Criteria) this;
        }

        public Criteria andRemrk3GreaterThanOrEqualTo(String value) {
            addCriterion("remrk3 >=", value, "remrk3");
            return (Criteria) this;
        }

        public Criteria andRemrk3LessThan(String value) {
            addCriterion("remrk3 <", value, "remrk3");
            return (Criteria) this;
        }

        public Criteria andRemrk3LessThanOrEqualTo(String value) {
            addCriterion("remrk3 <=", value, "remrk3");
            return (Criteria) this;
        }

        public Criteria andRemrk3Like(String value) {
            addCriterion("remrk3 like", value, "remrk3");
            return (Criteria) this;
        }

        public Criteria andRemrk3NotLike(String value) {
            addCriterion("remrk3 not like", value, "remrk3");
            return (Criteria) this;
        }

        public Criteria andRemrk3In(List<String> values) {
            addCriterion("remrk3 in", values, "remrk3");
            return (Criteria) this;
        }

        public Criteria andRemrk3NotIn(List<String> values) {
            addCriterion("remrk3 not in", values, "remrk3");
            return (Criteria) this;
        }

        public Criteria andRemrk3Between(String value1, String value2) {
            addCriterion("remrk3 between", value1, value2, "remrk3");
            return (Criteria) this;
        }

        public Criteria andRemrk3NotBetween(String value1, String value2) {
            addCriterion("remrk3 not between", value1, value2, "remrk3");
            return (Criteria) this;
        }

        public Criteria andRemrk4IsNull() {
            addCriterion("remrk4 is null");
            return (Criteria) this;
        }

        public Criteria andRemrk4IsNotNull() {
            addCriterion("remrk4 is not null");
            return (Criteria) this;
        }

        public Criteria andRemrk4EqualTo(String value) {
            addCriterion("remrk4 =", value, "remrk4");
            return (Criteria) this;
        }

        public Criteria andRemrk4NotEqualTo(String value) {
            addCriterion("remrk4 <>", value, "remrk4");
            return (Criteria) this;
        }

        public Criteria andRemrk4GreaterThan(String value) {
            addCriterion("remrk4 >", value, "remrk4");
            return (Criteria) this;
        }

        public Criteria andRemrk4GreaterThanOrEqualTo(String value) {
            addCriterion("remrk4 >=", value, "remrk4");
            return (Criteria) this;
        }

        public Criteria andRemrk4LessThan(String value) {
            addCriterion("remrk4 <", value, "remrk4");
            return (Criteria) this;
        }

        public Criteria andRemrk4LessThanOrEqualTo(String value) {
            addCriterion("remrk4 <=", value, "remrk4");
            return (Criteria) this;
        }

        public Criteria andRemrk4Like(String value) {
            addCriterion("remrk4 like", value, "remrk4");
            return (Criteria) this;
        }

        public Criteria andRemrk4NotLike(String value) {
            addCriterion("remrk4 not like", value, "remrk4");
            return (Criteria) this;
        }

        public Criteria andRemrk4In(List<String> values) {
            addCriterion("remrk4 in", values, "remrk4");
            return (Criteria) this;
        }

        public Criteria andRemrk4NotIn(List<String> values) {
            addCriterion("remrk4 not in", values, "remrk4");
            return (Criteria) this;
        }

        public Criteria andRemrk4Between(String value1, String value2) {
            addCriterion("remrk4 between", value1, value2, "remrk4");
            return (Criteria) this;
        }

        public Criteria andRemrk4NotBetween(String value1, String value2) {
            addCriterion("remrk4 not between", value1, value2, "remrk4");
            return (Criteria) this;
        }

        public Criteria andRemrk5IsNull() {
            addCriterion("remrk5 is null");
            return (Criteria) this;
        }

        public Criteria andRemrk5IsNotNull() {
            addCriterion("remrk5 is not null");
            return (Criteria) this;
        }

        public Criteria andRemrk5EqualTo(String value) {
            addCriterion("remrk5 =", value, "remrk5");
            return (Criteria) this;
        }

        public Criteria andRemrk5NotEqualTo(String value) {
            addCriterion("remrk5 <>", value, "remrk5");
            return (Criteria) this;
        }

        public Criteria andRemrk5GreaterThan(String value) {
            addCriterion("remrk5 >", value, "remrk5");
            return (Criteria) this;
        }

        public Criteria andRemrk5GreaterThanOrEqualTo(String value) {
            addCriterion("remrk5 >=", value, "remrk5");
            return (Criteria) this;
        }

        public Criteria andRemrk5LessThan(String value) {
            addCriterion("remrk5 <", value, "remrk5");
            return (Criteria) this;
        }

        public Criteria andRemrk5LessThanOrEqualTo(String value) {
            addCriterion("remrk5 <=", value, "remrk5");
            return (Criteria) this;
        }

        public Criteria andRemrk5Like(String value) {
            addCriterion("remrk5 like", value, "remrk5");
            return (Criteria) this;
        }

        public Criteria andRemrk5NotLike(String value) {
            addCriterion("remrk5 not like", value, "remrk5");
            return (Criteria) this;
        }

        public Criteria andRemrk5In(List<String> values) {
            addCriterion("remrk5 in", values, "remrk5");
            return (Criteria) this;
        }

        public Criteria andRemrk5NotIn(List<String> values) {
            addCriterion("remrk5 not in", values, "remrk5");
            return (Criteria) this;
        }

        public Criteria andRemrk5Between(String value1, String value2) {
            addCriterion("remrk5 between", value1, value2, "remrk5");
            return (Criteria) this;
        }

        public Criteria andRemrk5NotBetween(String value1, String value2) {
            addCriterion("remrk5 not between", value1, value2, "remrk5");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}